class ResearchCategory < ActiveRecord::Migration
  def self.up
    create_table :research_categories do |t|
      t.string :name
      t.string :desc

      t.timestamp
    end

    add_column :researches, :research_category_id, :integer, :default => 0
  end

  def self.down
    drop_table :research_categories
    remove_column :researches, :research_category_id
  end
end
